$(function(){

$(".zk").click(function(){
  var s=$(this);
  var k=$(this).prev();
  if(typeof(k.attr("style"))=="undefined")
  {
    k.css({"height":"20px","overflow":"hidden","display":"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":"1","text-overflow":"ellipsis"})
    
    s.children("z").text("展开详情");
    $(this).children("img").css({"transform":"rotate(0deg)"});
  }else{
    k.removeAttr("style");
    
    s.children("z").text("折叠详情");
    $(this).children("img").css({"transform":"rotate(180deg)"});
  }
 
});



$("#fxxtop").click(function(){

 if($("#fxx").css('left')=='0px')
  {
    $("#fxx").animate({left:'-99vw'},300);
    $("#cdjt").css({"transform": "rotate(180deg)","left":"0px"});
    $("#cdmb").fadeIn('fast');
  }else{
    $("#fxx").animate({left:'0px'},300);
    $("#cdjt").css({"transform": "rotate(0deg)","left":"-5px"});
    $("#cdmb").fadeOut('fast');
  }

});



$("#cdmb").click(function(){
  $("#fxx").animate({left:'0px'},300);
    $("#cdjt").css({"transform": "rotate(0deg)","left":"-5px"});
    $("#cdmb").fadeOut('fast');
});







});


